package com.example.javajetpacktest;

import android.app.Application;

import com.example.javajetpacktest.network.HttpUtils;
import com.example.javajetpacktest.network.LoginManager;
import com.xuexiang.xui.XUI;

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        //QMUISwipeBackActivityManager.init(this);
        XUI.init(this); //初始化UI框架
        XUI.debug(true);  //开启UI框架调试日志
        boolean isDebug = BuildConfig.DEBUG;
        HttpUtils.getInstance().init(isDebug);
        if(LoginManager.isLogined(this)){
            HttpUtils.getInstance().setAuthToken(LoginManager.getToken(this));
        }
    }
}
